const {mongoose} = require('./db')
const Schema = mongoose.Schema

//消息表
const messageSchema = new Schema({
    messagename:String, //消息名称
    remindtime:{
        type:Date,
        default:new Date()
    },
    status:{
        type:Boolean,
        default: false
    }
})

const messageModel = mongoose.model('message',messageSchema,'message')
// messageModel.create([
//     {
//         messagename:'消息消息111',
//     }
// ])


module.exports ={messageModel}
